package com.toutou.base.adapter.viewholder

import android.content.Context
import android.view.ViewGroup
import com.toutou.base.R
import com.toutou.base.databinding.LayoutEmptyBinding


class EmptyViewHolder(context: Context?, parent: ViewGroup?) :
    BaseNormalViewHolder<String?, LayoutEmptyBinding>(context!!, R.layout.layout_empty, parent) {

    @Deprecated("Use bindData(info: String, pic: Int) instead")
    override fun bindData(data: String?) {
        mBinding.setInfo(data)
    }

    fun bindData(info: String, pic: Int, height: Int) {
        mBinding.setInfo(info)
        mBinding.setPic(pic)
        mBinding.setHeight(height)
    }
}
